package net.sxjr.mbg.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 系统编码
 * </p>
 *
 * @author cuixc
 * @since 2020-12-10
 */
public class JbdpCode extends Model<JbdpCode> {

    private static final long serialVersionUID=1L;

    /**
     * 编码标识
     */
    @TableId("CODE_NO")
    private String codeNo;

    /**
     * 名称
     */
    @TableField("CODE_NAME")
    private String codeName;

    /**
     * 上级编码
     */
    @TableField("PARENT_CODE")
    private String parentCode;

    /**
     * 备注
     */
    @TableField("NOTE")
    private String note;

    /**
     * 0=禁用；1=启用
     */
    @TableField("STATE")
    private Integer state;

    /**
     * 1=正常；0=删除；
     */
    @TableField("DEL_FLAG")
    private Integer delFlag;

    /**
     * 所属机构
     */
    @TableField("ORG_ID")
    private String orgId;

    /**
     * 所属系统
     */
    @TableField("APP_ID")
    private String appId;


    public String getCodeNo() {
        return codeNo;
    }

    public JbdpCode setCodeNo(String codeNo) {
        this.codeNo = codeNo;
        return this;
    }

    public String getCodeName() {
        return codeName;
    }

    public JbdpCode setCodeName(String codeName) {
        this.codeName = codeName;
        return this;
    }

    public String getParentCode() {
        return parentCode;
    }

    public JbdpCode setParentCode(String parentCode) {
        this.parentCode = parentCode;
        return this;
    }

    public String getNote() {
        return note;
    }

    public JbdpCode setNote(String note) {
        this.note = note;
        return this;
    }

    public Integer getState() {
        return state;
    }

    public JbdpCode setState(Integer state) {
        this.state = state;
        return this;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public JbdpCode setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
        return this;
    }

    public String getOrgId() {
        return orgId;
    }

    public JbdpCode setOrgId(String orgId) {
        this.orgId = orgId;
        return this;
    }

    public String getAppId() {
        return appId;
    }

    public JbdpCode setAppId(String appId) {
        this.appId = appId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.codeNo;
    }

    @Override
    public String toString() {
        return "JbdpCode{" +
        "codeNo=" + codeNo +
        ", codeName=" + codeName +
        ", parentCode=" + parentCode +
        ", note=" + note +
        ", state=" + state +
        ", delFlag=" + delFlag +
        ", orgId=" + orgId +
        ", appId=" + appId +
        "}";
    }
}
